package com.oig.sys.msg.dto;

import com.oig.common.validator.GroupAdd;
import com.oig.common.validator.GroupEdit;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema
@Data
public class TaskLogDto {

	@Schema(description = "任务日志id")
	private Integer id;

	@Schema(description = "任务id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
	@NotNull(message = "参数错误,任务id不能为空", groups={GroupAdd.class,GroupEdit.class})
	private Integer taskId;

	@Schema(description = "任务日志内容", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
	@NotEmpty(message = "参数错误,任务日志内容不能为空", groups={GroupAdd.class, GroupEdit.class})
	private String logContent;

	@Schema(description = "操作人id")
	private Integer logUserId;
	@Schema(description = "操作人名")
	private String logUserName;

}
